package com.example.zzk;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import android.os.Bundle;

import java.util.ArrayList;
import java.util.List;

public class MentActivity extends BaseActivity {
    private List<Bean> data = new ArrayList<>();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_ment);
        for (int i = 0; i<100; i++){
            data.add(new Bean("冰雪心" + i, i));
        }
        initView();


    }

    private void initView() {
        RecyclerView recyclerView = (RecyclerView) findViewById(R.id.rv);
        LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
        MentAdapter mentAdapter = new MentAdapter(data,this);
        recyclerView.setAdapter(mentAdapter);
        recyclerView.setLayoutManager(linearLayoutManager);
    }
}